var e,
  r =
    (e = require("../../@babel/runtime/regenerator")) && e.__esModule
      ? e
      : { default: e },
  t = require("../../@babel/runtime/helpers/asyncToGenerator"),
  u = require("@/services/user-service"),
  n = require("@/utils/index"),
  a = require("@/utils/jump");
Page({
  data: {},
  onLoad: function (e) {
    return t(
      r.default.mark(function t() {
        var s, i, o, c, l, d, g;
        return r.default.wrap(function (r) {
          for (;;)
            switch ((r.prev = r.next)) {
              case 0:
                return (
                  console.log("订单插件入参", e),
                  (s = e.url),
                  (i = e.q),
                  (o = (0, u.getUId)()),
                  (r.next = 5),
                  (0, u.getSKEY)()
                );
              case 5:
                (c = r.sent),
                  (l = {
                    uid: (0, u.getLoginStatus)() ? o : "",
                    skey: (0, u.getLoginStatus)() ? c : "",
                  }),
                  (d = s),
                  i &&
                    (g = (0, n.getHttpParamByKey)(
                      decodeURIComponent(i),
                      "url",
                    )) &&
                    (d = g),
                  (0, a.navigateTo)(d, l, !0);
              case 10:
              case "end":
                return r.stop();
            }
        }, t);
      }),
    )();
  },
});
